def flatten_in_place(orig):
    """flattens a given list in place"""

    is_flattened = False

    while not is_flattened: # iterating until no more lists are found

        is_flattened = True
        for i, item in enumerate(orig):

            if isinstance(item, list):
                is_flattened = False
                orig = orig[:i] + item + orig[i + 1:]

    return orig