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
fallback
namespace-package
nehotspotconfiguration
beaninfo
splitview
ios10-today-widget
isapi-rewrite
angular-ngselect
lex
docutils
security-framework
bundle-layout
resource-scheduling
flutter-apk
dllmain
excel-automation
cuprite
aws-ebs
easynetq
text-compression
mio
bixolon-printer
aka.ms
kentico-12
intermittent
constraint-layout-chains
junit-vintage
angular-materialize
textexpander
bullet