python flatten nested json to dataframe