replacing md5 module with hashlib