De-nesting main.py