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
closesocket
drawrectangle
amazon-quicksight
batch-updates
uicollisionbehavior
phantom-reference
vnc-server
accept-suite
fanotify
truthy
onpress
relayjs
backup
for-xml-path
showtext
xamarin-forms
audio-processing
plc
chromium-os
device-instance-id
sspi
scilab
getderivedstatefromprops
android-launcher
telephonymanager
arrangeoverride
private-key
add-on
yaml-cpp
print-preview