Switch to hashlib to work with django 1.6