Remove the obsolete main.py file and ensure consistent linting across the codebase before PRs. This includes updating linting and mypy checks.