python mode and init changes