Mod. main.py, new function for variables check