filter() doesn't return a list in Python 3