Replace tabs with 4 spaces in main.py template
Simulate `main` function in Python