how to filter data from json file in python