Py3k

Adds compatibility with Py3k (ripping off Py2, need to add from
__future__)