I'm unable to capture stdout of runpy.run_module into a variable using StringIO. To demonstrate the problem, I created a script called runpy_test.py (code below
alglib
.ctf
rexster
actionresult
photoshop-sdk
dynamically-generated
dart-js-interop
resulttransformer
simplecursoradapter
automata-theory
laravel-middleware
urlretrieve
endpoint-for-defender
end-of-life
blending
router-outlet
suitescript2.0
interactive-shell
netbios
ngsw-config
stopiteration
termius
java-11
simics
pinning
goutte
pin-code
syntax
timestamp-with-timezone
xceed