Update HashIdentifier.py

Added support for python lower and new versions.