Format Time Duration Python Code Running