Mix of python algorithms