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
cartocss
bugzilla
google-analytics
nspopover
pbr
tor-browser-bundle
category-theory
soundplayer
subtype
pgrouting
opengis
sqlalchemy
iceweasel
twilio-video
wadl
xunit.net
zerobrane
location
lumen-5.4
zeus
updates
serilog-postgresql
webdriver-manager
quartz.net
tensorflow-model-garden
web.xml
camunda-plugin
nimbus-jose-jwt
azure-sdk-python
valueconverter