MD5 and SHA1 are cryptographically broken and should not be used for security.
Use hashlib.sha256() or hashlib.sha3_256() instead.