Use absolute import

Relative imports prevents pymdstat working on Python 3.

Remove redundant check for functools.reduce(). It was introduced in Python 2.6.