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
default-document
okteto
amazon-ami
serilog-sinks-elasticsearch
liferay-theme
nspersistentcontainer
dhclient
paintevent
ctrlp
iasyncenumerable
spinnaker-cam
mixed-model
pi4j
effects
react-table-v7
gpy
sktime
javahelp
mapbox-android
nuget-server
android-reactivelocation
mikro-orm
reentrancy
purge
glusterfs
console-scraping
koa-static
medium-editor
hessian
application-lifecycle