Seems to work on Python 3 now (although more tests would be nice). Moved some of the Python to Literal conversion work to rdflib since that does that for you.