Python 3 compatibility

Future proof. PEP8 compliant.