Initial Py3 compatibility

Should work just fine in Py2. There are still some byte/string issues, but they don't seem to cause major problems.
Merge pull request #1 from Scimmia22/patch-1

Initial Py3 compatibility