PEP8 and updated prints to work with py3.