Simple Python-Implementation of a famous algorithm