Distinct Command In Python