Making it work with newest rdflib