I separated the constants and functions. To run, run separatedfunctions,py