def ordered_keys(subscriptable_object, *keys):
    """
    returns a tuple with the values for KEYS in the order KEYS are provided,
    from SUBSCRIPTABLE_OBJECT. Useful for working with dictionaries when
    parameter ordering is important. Used for sql transactions.
    """
    return tuple([subscriptable_object[key] for key in keys])