MD5 deprecation fix

I noticed a deprecation warning for the md5 lib and replaced the lib it by the newer hashlib version.