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
amz-sp-api
mobx-persist
compilationmode
dt
restrict-qualifier
serialization
systemparametersinfo
offline-mode
formik-material-ui
pts
caldav
nuget-package-manager-console
google-voice-actions
runtime-type
curve-25519
tao
heroku-addon
media
surround
multimodal
di-containers
fen
winforms-interop
sectionedrecyclerviewadapter
cmake-hunter
chargebee
xcuielement
xjb
jpeg2000
jsonp