Python From Functools Import Reduce