How to Write a JSON File in Python