Python 2/Python 3 compatible installation strategy

Fixed installation for Python 3, as hashlib package is only Python 2 compatible.

Linked to official Python package installation guide.