config python mode