greenio, tpool: python3 compatibility

Also:
- PEP-8
- check both EAGAIN/EWOULDBLOCK
- use system implementation of GreenPipe.readinto()
Python 3 compatibility fixes