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
gmisc
mitre-attck
vistime
cancan
cp
youtube-data-api
system.json
nautowired
spring-webflux
msix
netdata
gevent
systemfit
http-status-code-405
mediatypeformatter
phpmailer
tensorflow1.15
gino
digital-handwritting
multiple-inheritance
placement-new
yii2-urlmanager
fluxor
arcgis-js-api
m2e
tomahawk
bytesio
admob-cookieconsent
illuminate-container
permission-denied