I\'m getting data with pandas from a rest API and storing it in a csv. Every so often I hit the limit of API calls and I get a json object instead of the data that I\'m expe