Changes from Oct 7th onwards in pele-python/pele and miscellaneous fixes from PyCharm

This contains all the commits made to pele-python since it was forked and a few changes I just made using PyCharm's code inspection (e.g. changing line lengths and formatting).