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
mjml
terminal-services
windowinsets
intermediate-language
pyrogram
docker-container
ng-map
appjs
puppet-3
kendo-asp.net-mvc
debian-preseeding
scd2
google-cloud-resource-manager
ts-check
docker-registry-mirror
mantis
cwp
hkdf
openonload
gcloud-node
gcc-statement-expression
github-desktop
file-association
cordova-3
bresenham
spinlock
ts-node-dev
pyexcel
google-truth
boost-logging