total restructure of high level control to allow for control laws in python