[Py3] Use bytes for encoding= XML strings.
[Py3] Fix outdated except: syntax
[Py3] Fix deprecated assertEquals.
[Py3] Use unicode_literals.
Merge pull request #1 from rbarrois/py3

Add Python3 compatibility. Thanks to rbarrois!