fix more issues with python3 port

fixed issue with return type of .encode (now bytes) and expectes bytes
as agument to .decode (tho python2 code can fudge this).
add tests/__init__.py for test discovery

with unittest