Fixed rdf file write issue with python 3.
Merge pull request #9 from jonathanritchie/rdf_issue

Fixed rdf file write issue with python 3.