Water pump project

hey guys, so i’m doing at the moment a project. so i have to pump some water when i say it out loud from a bottle and to fill a cup until i say stop. I’ve created a skill with the name water-pump-skill and everything was really good until when i started to write the program to activate the water pump at init.py file. my question is: would the code of the water pump in this case be as the codes of LEDs for example?
I have hardwares like in this link: Water Your Plant Using a Raspberry Pi and Python - DEV Community.
If anyone could help me please, i will be thankful.

I have a simple example how to get 2 programs in one init.py maybe that helps you? GitHub - gras64/bluetooth-audio-skill: Connect mycroft with bluetooth speaker or other devices