The keyboard iohub demo did not start on my Macbook Pro (late 2012) under os Sierra.
I replaced:
while not ‘q’ in events and flip_time - demo_timeout_start < 15.0:
by:
while not ‘q’ in events:
following https://github.com/psychopy/psychopy/issues/1270
Now the demo starts, but only recognizes special characters like command, control, option… but not standard characters like a, b or space.