You need to instantiate a class instance here.
Use
p = Pump()
p.getPumps()
Small example –
>>> class TestClass:
def __init__(self):
print("in init")
def testFunc(self):
print("in Test Func")
>>> testInstance = TestClass()
in init
>>> testInstance.testFunc()
in Test Func