Moved the constraint.py script to its own dedicated directory,
removed an unnecessary modified constraint.py script, and refactored
code to reflect new directory structure.