Fixes Python 3.3 reduce

The built in `reduce` has been moved to `functools.reduce` in Python 3.3