Use absolute import

Remove redundant check for functools.reduce(). It was introduced in
Python 2.6.