Use select.select() instead of select.poll()