Update main.py

Refactoring of variables