wrote fitting fn in python that handles arbitrary functions of x and y, added corresponding plotting routine to plotOutput