Started using PyCharm. It had lots of reformatting suggestions which I accepted.