Convert JSONObject into a Python OrderedDict
[System] minor refractoring