Python 3 port cleanup

- added workaround for requests py3 bug for versions <= 1.2.3
- code cleanup in RequestsTransport