Reformat and remove extra print statement

Formats the code to PEP 8 and removes an extra print statement.