como enviar um comando para cmd usando python

import os
# this command will be executed in cmd eg.echo hi
os.system("echo hi")
#output
#hi
Poor Peccary