Add missing import hashlib

Corrected error in previous commit, where
hashlib was referenced but not imported.