def tracer(self, frame, event, arg):
    ' Tracer function that receives the tracing events '
    if (not self.active):
        return None
    return self.tracer
Tracer function that receives the tracing events
def tracer(self, frame, event, arg):
    '  '
    if (not self.active):
        return None
    return self.tracer