Make script working for Python3 / Fix import problem with simplejson