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
tslib
pajek
html-editor
sized-box
keyguardlock
serilog-postgresql
rack-test
xamarin.android
brms
date-conversion
chargify
process-state-exception
flatfilereader
surface-pro
jsfl
shapley
jboss
bazaar
baumer
gtkbutton
cassandra
rtti
forward-list
hla
achartengine
zappa
logical-and
tizen-web-app
collision-detection
krpano