Because you haven't given us the slightest clue about how you have structured your script how could we hope to help you πŸ˜’
There are by now many example scripts around to give you a clue on how to construct one...
You speak of 'extension' - have you constructed you tool in two parts ? a loader and a main script in a subfolder? Have you given it a menu.context-menu/toolbar etc...
Looks like you have some way to go πŸ˜•