how to iterate through a json file in python