Your question seems to be a request for help in writing the extension. This list is for discussion and improvement of proposed implementations. For help in writing the code, the python-corementorship list is a better venue.
If your question is for help in designing the extension, and deciding whether to add it to Python's standard library, the python-ideas list is a better venue.
I want to add openssl engine in Python SSL library. I know that if the new functions can be added in Python we can inherit existing class (such as ssl). However, It seems the SSL module extends _SSL module which is written in C. I'm not sure how can I extend SSL module in this situation. Any help would be deeply appreciated!