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
simulated-annealing
linktext
x25519
pdfsharpcore
formal-semantics
pythonbrew
rowcount
worker-process
spring-security-cas
uiimage
r2rml
first-class
log-level
qemu-device
android-beam
general-log
cordova-plugin-ionic-webview
azure-devtest-labs
database-scripts
geotagging
jett
chartjs-plugin-zoom
wcf-data-services
cssnext
tdb
avaudiounit
sifting-appender
ntdll
maglev
botkit