new python mode