Python execute in console: added selection of the console in case of more than one.