def print_debug(self, outstr):
    if self.allow_print.isSet():
        framework.Framework.print_debug(self, outstr)
def print_debug(self, outstr):
    if self.allow_print.isSet():
        framework.Framework.print_debug(self, outstr)