Update constraint_lib.py

added subframe cleanup