Como abrir o CMD e executar código usando Python

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