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
c++-modules
jackknife
d2xx
servicemanager
wpengine
notifydatasetchanged
google-admin-audit-api
nsscanner
sigpipe
cleartimeout
secp256k1
eglfs
amazon-linux
extjs6-classic
madlib
ldf
replaykit
webchatjs
spring-oxm
hoisting
amazon-forecast
responsive
maven-scm
glkit
android-speech-api
replaceall
passlib
nib
flutter-apk
linechart