def python_to_sender_callback(sender):
    """Wraps a sender in a callback.  The sender must have a "send" function
    which receive the arguments from the callback

    Args:
        sender (:obj:) an object that has a "send" function

    Returns:
        a function
    """
    def callback_wrapper(*args):
        return sender.send(*args)

    return callback_wrapper