How To Loop Command In Python