import inspect


def get_callerinfo(level=0):
    """
    Get caller info
    """
    return inspect.getouterframes(inspect.currentframe(),
                                  context=0)[level + 1][1:3]