Removed JSON stuff since there is JSON function in Python.