python3 compatibility effort2

It looks like `functools.reduce` exists starting in Python 2.6, so I think just
```python
from functools import reduce
```
(without a version check) would be more straightforward.