Pycharm fix indentation. For the whole file: CTRL + ALT + SHIFT + L.