gwFunctions.py Update 17/12/2014