converts json files to .py for use in _cfg