You are going to need to define a component somewhere using something that looks like what you get out of the ghpy component:
class MyComponent(component):
def __new__(cls):
instance = Grasshopper.Kernel.GH_Component.__new__(cls,....
Each component in your plugin needs it’s own py file as far as I know (unless someone can explain another way). Like: component_name.py