title: Python equivalent of PHPs __call() magic method?
body: <p>In PHP, I can do something like this:</p>
  
  <pre><code>class MyClass
  {
    function __call($name, $args)
    {
      print('you tried to call a the method named: ' . $name);
    }
  }
  $Obj = new MyClass();
  $Obj-&gt;nonexistant_method();   // prints "you tried to call a method named: nonexistant_method"
  </code></pre>
  
  <p>This would be handy to be able to do in Python for a project I'm working on (lots of nasty XML to parse, it'd be nice to turn it into objects and be able to just call methods. </p>
  
  <p>Does Python have an equivalent?</p>