changed plan() function to require a pointer to the task expansion set as a parameter, instead of importing it from MDML.Expectation
fixed demo2.py to import the right planning knowledge and use the new plan interface