How to Write JSON Data to a File in Python | CodeTrail