To import ButtonBox, you can either use:
from psychopy_iolabs.iolab import ButtonBox
or, any time after psychopy.plugins.activatePlugins has been called:
from psychopy.hardware import ButtonBox