Fixed a python 3 incompatibility and updated the readme