class Custom(object):

    def __init__(self):
        self.detail = 77

def call_bug(self, name):
    name.bug(self)


class Debugger(object):

    def bug(self, caller):
        print(caller.__dict__)
custom = Custom()
Access namespace of calling module