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
word-2016
android-sqlite
sitecore9
android-youtube-api
lock-free
kentico-mvc
relational-algebra
otrs
rsh
sitemap.xml
samsung-gear
trax
constructor-injection
angular-material-6
undefined-symbol
vestacp
django-piston
oracle-streams
data-tier-applications
pysmt
graphframes
nsfontmanager
through2
iphone-sdk-4.0.1
dottrace
crossover
dollar-quoting
git-index
phonebook
webproxy