Python 3 compatitbility
Remove buffering per @swails
Merge pull request #715 from mpharrigan/py3

Python 3 compatitbility