Fix lint errors in main.py