changed os.path. imports
todo
do not use ipython mode until tested
fwlite stuff will now rerun a sample, if its output was deleted