code: def filter(polylines, min_len=20):
      
      filtered = []
      for n in range(len(polylines) - 1, -1, -1):
          if lengths(polylines[n]).sum() < min_len:
              filtered.append(polylines.pop(n))
      return filtered
docs: filter polylines shorter than given min length