Libreoffice pyuno macro compile into .pyd/.so

There is a doubt: Is there a posibility to build a python script using pyuno into a pyd(windows)/so(linux).
I tried using cython and MSVC, and it is compiled into .pyd but runtime failed as the py file import the com.sun.star …, so has someone tried this?