Fixing JSON reading in Python.