#9 Use select module to check output

@fizyk @pwilczynskiclearcode please, look at the code
let's unregister after, and preferably remove the poll_obj