fixed Pyhton interpreter crash when opening folders dialog multiple times (synchronous impl.)