Python program to launch predefined commands