Python 3 support & reformatted based on PEP8 recommendations.
Merge pull request #1 from felixleong/master

Python 3 support & reformatted based on PEP8 recommendations.