ECDSA keys implementation for Python