convert config to python file and import into settings