django hashcompat is deprecated in 1.5. Updated to use python's hashlib