import inspect


def find_caller(level):
    """Return a string with the caller of the function that called
    find_caller, and the line number of the call. Intended for use
    with exception calls.
    
    Inputs: level - integer - if 0, the caller of find_caller, 
        if 1, the caller above that
    """
    stack_tup = inspect.stack()[level + 1][1:3]
    return '{:s}:{:d}'.format(stack_tup[0], stack_tup[1])