Orf's Python submission

A Python solution that inspects the callstack to compute the correct output