print(inspect.stack()[0].function), похоже, тоже работает (Python 3.5).
print(inspect.stack()[0].function)