import traceback


def whocalledme(depth=2):
    """Use traceback to find the name (string) of a function that calls it.
    
    Depth:
    1 - this function
    2 - is the default number, finds the function that calls this function
    3 - the function above that
    4 - the function above that (etc...)
    """
    names = []
    for line in traceback.format_stack():
        whereNwhat = line.strip().split('\n')[0]
        names.append(whereNwhat.split(' ')[-1])
    return names[-depth]