Small Python 3 fixes

Remove stray print statements and convert to bytes in example code for hmac signature.