add configs for python mode