#9 Use select module to check output

@fizyk @pwilczynskiclearcode please, look at the code
if we'll set the timeout for 60 seconds, and will wait on previous steps 40, this will make the overall timeout to be 100, since we'll be waiting here additional 60