Développement d'un algorithme python