Added more command generation Python code