Edit: constrain.py