class XQTestClass(object): def __init__(self,DC): self.XQ = XQTerPlan(DC) def test1(self): self.XQ.thePlan('moo')