Refactoring constants to constant.py file