refixed python2/3 switching session deletion