Pandas DataFrame to JSON conversion improved