Updated to make compatible with Python3
Did the requested changes.
Merge pull request #15 from marky1991/master

Updated to make compatible with Python3