group Python shell with python mode