Fix #1: Use select.select() instead of select.poll()

select.poll() does not work on all platforms.

Replace it with select.select().

Change-Id: Iadd09127c99b5b47ebc28f6f4e57fcc1eb4c8710