There are multiple references to PumpingStation that results in the error: NameError: global name 'PumpingStation' is not defined Please append 'pump.' to each instance of PumpingStation to make it pump.PumpingStation