import hashlib


def hexdigest(strings):
    m = hashlib.md5()
    for s in strings:
        m.update(s)
    return m.hexdigest()

import hashlib


def hexdigest(strings):
    m = hashlib.md5()
    for s in strings:
        m.update(s.encode())
    return m.hexdigest()

Fix TypeError in Python 3
Fix TypeError in Python 3
