The code implemented for your examples is rather complex IMHO, e.g. cutstock.py.
I would appreciate a copy of the mathematical formulation that was used for your impl