code: def _get_function_name(self):
          
          fname = inspect.getframeinfo(inspect.stack()[2][0]).function
          if fname == "<module>":
              return ""
          else:
              return fname
docs: Get function name of calling method
  
          :return: The name of the calling function
              (expected to be called in self.error/debug/..)
          :rtype: str | unicode