def flatten(tuple_entry):
    """
    Given a tuple of tuples and objects, flatten into one tuple of objects

    @param {Tuple} tuple_entry Tuple containing possibly nested tuples
    @return {Tuple} One dimensional tuple of objects
    """
    if len(tuple_entry) == 0:
        return tuple_entry
    if isinstance(tuple_entry[0], tuple):
        return flatten(tuple_entry[0]) + flatten(tuple_entry[1:])
    return tuple_entry[:1] + flatten(tuple_entry[1:])