Py3

Some tiny changes to make the code work in both Python 2 and 3 - basically just brackets for a bunch of prints!