fix load of migrations and config files with python code