Update convertjson.py

Credit code source