minor changes for how the requests library handles json