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
visual-studio-2012
jquery-widgets
metrics-server
nsstringencoding
aabb
boids
nsopenpanel
terminal-services
circularreveal
uint32
browscap
pdf417
castle-windsor
basichttpbinding
motorengine
memmove
lrc
docker-cp
wix-extension
itemspaneltemplate
traceability
theme-ui
fts4
ffmpeg-wasm
azure-devops-pipelines
touchpad
cloudflare-pages
cp866
eventlog-source
pawn