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
git-status
newlib
template-method-pattern
wds
winbugs
subscript-operator
maven-toolchains-plugin
tippyjs
asp.net-mvc-viewmodel
http-delete
use-case
r-highcharter
hungarian-algorithm
mailchimp-api-v3
log-likelihood
lockscreenwidget
azure-configuration
equation
top-n
llvm-cov
hlsl2glsl
webassets
atmega32
lit
winston-elasticsearch
fourcc
operands
nsbezierpath
rich-snippets
responsiveness