How to correct TypeError: Unicode-objects must be encoded before hashing? How to correct TypeError: Unicode-objects must be encoded before hashing? python python