python output dictionary to json file