python version of faces algorithm, no expl yet