fix synax of x509.py, add raise NotImplemented for unimplemented methods