def remove_start_end_points(positions):
    """remove all items from list that are either 0.0 or 1.0"""
    positions = list(filter((0.0).__ne__, positions))
    positions = list(filter((1.0).__ne__, positions))
    return positions