import hashlib


HTTP_METHOD_ACTION_MATCHING = {
    'get': 'GET',
    'create': 'POST',
    'update': 'PATCH',
    'create_or_update': 'PUT',
    'delete': 'DELETE'
}


def get_subscriber_hash(member_email):
    """
    The MD5 hash of the lowercase version
    of the list member's email.
    Uses as memeber_id
    """
    member_email = member_email.lower()
    m = hashlib.md5(member_email)
    return m.hexdigest()

def merge_two_dicts(x, y):
    '''Given two dicts, merge them into a new dict as a shallow copy.'''
    z = x.copy()
    z.update(y)
    return z

@@ -299,17 +299,16 @@
 s as mem
-e
 ber_id%0A 
@@ -353,16 +353,25 @@
 .lower()
+.encode()
 %0A    m =

Pass a bytestring to hashlib.md5.