hmac only works with `str` type in Python 2

See also http://bugs.python.org/issue5285
Merge pull request #407 from calvin/develop

Fixes for send_email plugin, hmac only works with `str` type in Python 2