Get parent function
<p>Is there a way to find what function called the current function? So for example:</p>

<pre><code>def first():
    second()

def second():
    # print out here what function called this one
</code></pre>

<p>Any ideas?</p>
