Fixed #537

Convert to bytes for hmac.compare_digest