python 3 support
socket closing fix?
Merge pull request #5 from ftzeng/master

Python 3 support