Fix bug in main.py Only import variables.py if need IFILENAME, so only in case of IndexError.