Add pem file parse function in py class.
1. Add pem file parse function in py. 2. Add pubkey length in cert structure.