Fixed to work with python 3.4
Merge pull request #1 from RossMeikleham/master

Fixed to work with python 3.4