Replace filter() with list comprehension

On python3 filter returns an iterator without len()