ECDSA implementation for Python