Use PEP-8 standard for formatting code, perhaps run the whole code through a formatter or install the pre-commit hooks ?