Commande Range Python Function Definition