Make some formatting changes to be more Pythonic, as per tips from DPB