Fix py3k compat with functools.reduce