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
protobufjs
chronicle-map
cron
huawei-iap
android-relativelayout
javaapplicationstub
microsoft-graph-api
filecontentresult
partials
ctfont
qt-linguist
firebird2.1
syslinux
console-application
crowdsourcing
hbbtv
osgi
xpages-ssjs
lockscreenwidget
awesome-notifications
cameraoverlayview
fully-qualified-naming
angular-ngrx-data
cerberus
spark-java
asp.net-core-2.1
unimarc
git-mv
junos-automation
qfontmetrics