Working native python implementation of public key portion of cube 2 crypto.