converted to python3
string/byte fixes
bug fixes; added rudimentary smoke test
Add smoke tests. All pass. Not much coverage
added comments, unused setup func