Modified Pytough

Realised during an internship in Civil Engineering, UC Berkeley, using
pytough Python modules from University of Auckland.