Swapped legacy % syntax with new hotness str.format. Also, proofed for pep8 compliance