Ejecute un script de Python con Python y Catch Command Line Salida

import os
cmd = 'wc -l my_text_file.txt > out_file.txt'
os.system(cmd)
Determined Dog