A public key encryption implementation in python