Use functools.reduce in setupext

The `reduce` built in was remove in Python 3 since it has been available in the `functools` module for some time now.  The built in was being used in *setupext.py*, this PR changes that.