Commande Range Python Function