In the 2nd attempt, did you set dyn1.py as the main module ?
The IDE doesn’t import DirectStart, it’s the responsibility of one of the user’s main modules, to let user’s app run naturally.
About the 1st attempt, what is QT doing there ?
Did you edit the test files to import QT ?