How To Stop A Command In Python