def filter_by_type(list_, filter_type):
    """ Filter the given list down to a list of the given types.

        :param list_: The unfiltered list.
        :param filter_type: The type of element to filter down too.
        :return: The filtered list, with only elements of the given type.
    """
    filtered_list = []
    for item in list_:
        if type(item) is filter_type:
            filtered_list.append(item)
    return filtered_list
