Support naive filtering in python API

Change-Id: I10caecf68c73e7c722a9ab93a718b80c588d4d0e
Merge "Support naive filtering in python API"