Don't use socket.makefile() on Python 2.6
Fix error on py26
Fix tox failed on PyPy
Merge pull request #164 from methane/master

Don't use socket.makefile() on Python 2.6