title: __getattr__ equivalent for CLASS methods
body: <p>When a attribute/method (instance.something) is not found we can work around it by implementing a <code>__getattr__</code> method.
  My question here is, how can we work around if a class method is not found.</p>
  
  <pre><code>class foo(object):
      @classmethod
      def bar(cls,a):
          print a
  
  foo.bar("123")
  
  # How to make below line work without throwing =  AttributeError: type object 'foo' has no attribute 'bar1'
  foo.bar1("234")
  </code></pre>
  
  <p>Real time example :<br>
  @goncalopp : Basically we have a master library(say foo) which imports various other classes/lib and what not, in one very specific "weird" whatever situation, I should not import that master library so for few methods I need to implement a hack and make below line work with minimal code. Eg, self.foo.bar.Comment("print this comment") and self.foo.bar.Log("Print this log") and like that we have INFO, DEBUG, ERROR...<br>
  My take is :  </p>
  
  <pre><code>foo = None
  class Dummyfoo(object):
      class foo(object):  
          class bar(object):
  
              @classmethod
              def Comment(cls,a):
                  print a
  
  if foo == None:
      self = Dummyfoo()
      self.foo.bar.Comment("print this comment")  
  </code></pre>
  
  <p>So one way of achieving this is implement each of INFO, DEBUG... or one stop class method which will print whatever it is fed with.  </p>
  
  <p>Hope now the question and its purpose is more meaningful.</p>
  
  <p>Thanks.</p>