Replace md5 (deprecated) by hashlib