Move _ec_key_curve_sn to openssl/ec.py