def add_search_bearings(search_bearing, perpendicular=True):
    """
    Take in a single bearing or list of bearings and returns it either as a list
    of itself if perpendicular is set to False or a list of itself and all its
    parallel and perpendicular bearings if perpendicular is kept set to True.
    Use for filtering objects by desired bearings.

    Parameters
    ----------
    search_bearing : list or integer
    perpendicular : boolean

    Returns
    -------
    search_list : list

    """

    search_list=[]
    if type(search_bearing) == list:
        for i in search_bearing:
            search_list.append(i)
            if perpendicular==True:
                for t in range(3):
                    search_list.append((i+(90*(t+1)))%360)
            else:
                pass
    elif type(search_bearing) == int:
        search_list.append(search_bearing)
        if perpendicular==True:
            for t in range(3):
                search_list.append((search_bearing+(90*(t+1)))%360)
        else:
            pass
    else:
        print("Please make sure the bearing(s) you are searching for are either an integer or a list of integers")
    return search_list