Back when I wrote this python script I didn't realize that I could just `import json` so the JSON serialization is unnecessarily complex. Use `import json` and clean things up.