Looks like the new method required unicode parameters, so I imported hashlib.