<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def filter_list(lst, takeout, case_sensitive=True):
 """Return a modified list removing items specified. Args: lst: Original list of values takeout: Object or objects to remove from lst case_sensitive: if the search should be case sensitive Returns: list: Filtered list of values """

    takeout = force_list(takeout)

    if not case_sensitive:
        lst = [x.lower() for x in lst]
        takeout = [y.lower() for y in takeout]

    return [x for x in lst if x not in takeout]