add constants.py file and test