Made python 3 compatable without breaking any python 2 usage
Merge pull request #7 from defcube/py3k

Made python 3 compatable without breaking any python 2 usage