Add support for RFC 5869 (HMAC-based Key Derivation Function)

I tested the changes with

Debian Wheezy + Python 2.7.3 and 3.2.3
Debian Squeeze + Python 2.6.6 and 3.1.3

However, you might want to review the Python3 support, I typically only do Python2.