Most filtering in Python done