How to hide the proxy from python?

Hello!

I have a custom widget which has no python analogue
And I want to hide it from the python menu

How could I do it?

Thanks