Pycharm auto format. Tap Shift twice and type reformat.