Fixed errors arising from Python 3.x
Merge pull request #179 from barrysteyn/master

Fixed errors arising from Python 3.x