update withfunctions.py to use optparse and take out csvreader/writer