convert a python source code into json-dumpable data (dict and lists with strings, ints, ...)