Python C extension for parsing X.509 certs