Here is an example of how a class can handle references to undefined attributes, methods and variables.
#!/usr/bin/env python
class clss(object):
def __getattr__(self, name):
def handlerFunc( *args, **kwargs):
print( "called with ", name, args, kwargs)
if name == 'd':
print( "called from member d")
return
return handlerFunc
c = clss()
c.abc( 1, b="hallo")
c.d