replace django...hashcompat (removed in django 1.6) by python hashlib