Switched to select.poll() in tcp Client