Add support for Python3.
Decode error message; use single quotes.
Merge pull request #2 from anntzer/master

Add support for Python3