`reduce` is not a built-in in python3 http://docs.python.org/3.0/whatsnew/3.0.html#builtins