c++ modes, python modes