How to use the "filter" function in Python?