Hash calculator written in Python