sum python file created

changed loop structure of rungalfit to have loop in main method