Merge pull request #1 from pazur/master

Python3.3 compatibility.
Py2/3 compatibility.