Set Command In Python