Python 3 SHA objects need bytes instead of string