Cómo abrir CMD y ejecutar código usando Python

os.system("start /wait cmd /c {command}")
Thoughtless Tapir