update md5 to use hashlib