def partialback(func, *extra_args):
    """partialback

    like functools.partial, but with arguments added from the back

    """

    def wrapper(*args):
        args = list(args)
        args.extend(extra_args)
        return func(*args)

    return wrapper