You need a `from functools import reduce` for py3