Python : How to intercept a method call which does-not exists?
<p>I want to create a class that doesn't gives an <code>Attribute Error</code> on call of any method that may or may not exists:</p>

<p><strong>My class:</strong></p>

<pre><code>class magic_class:
    ...
    # How to over-ride method calls
    ...
</code></pre>

<p><strong>Expected Output:</strong></p>

<pre><code>ob = magic_class()
ob.unknown_method()
# Prints 'unknown_method' was called

ob.unknown_method2()
# Prints 'unknown_method2' was called
</code></pre>

<p>Now, <code>unknown_method</code> and <code>unknown_method2</code> doesn't actually exists in the class, but how can we intercept the method call in python ?</p>
