Added locals.py and necessary modifications to import constants in main files.