Restarting python mode