Added python code and sample filter_groups.json file