Fix rfc822 import errors in python3
Intercept calls to the hmac module

This monkeypatches the hmac module so that calls to .new() and
.update() are done, in python3, with actual bytes objects.