Replace the deprecated md5 module by the hashlib one