* thread handling input instead of select.select([sys.stdin], [], [], s) which fails on windows issue #20