A reference implementation of Diffie-Hellman in Python