Changes to python reduction scripts.  Reduction functions now take the directory containing data as an argument.