Update EpanetAlgorithm.py

Changed the pumps and valves definition to include also line layers in addition to points - please check this.