Fix content parsing in Python 3.
Merge pull request #132 from anthony-tuininga/master

Fix content parsing in Python 3.