Changes to syntax for Python 3.x
Merge pull request #1 from xiankai/Python_3x

Changes to syntax for Python 3.x