If you have a python program that you 'd like to turn into DLL, I can help you do that without your showing me the source code.
There is no limitation on what Python library your Python code uses.
You need discuss with me to decide on a C++ header file for all the functions your python can provide. I then provide a customized Python script, that is all open for you to see. You run the script on your side to turn your Python code into DLL.