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
channels
algebraic-data-types
scorm1.2
assert
unmanagedresources
bond
hjson
altbeacon
optparse
rhel6
maze
tlistview
rfc2445
eyed3
xtdb
smartformat.net
clrs
vhosts
asynccallback
rangeslider
jqplot
apple-pdfkit
auto-sklearn
twitter-api-v2
groovyshell
xplane
librosa
network-analysis
dnsjava
cakephp-3.8