Added getconstants.py

Gets constants from a file and processes them.