commented matplotlib.use(Agg) line from fot_library because it interferes with the ability to run test functions