def write_csv_ev(filename, filtered, cleanup, store=None, stutter=False):
    lv = LobSTRvcf()
    lv.parse(filename, filtered=filtered, cleanup=cleanup, stutter=stutter)
    csvfile = op.basename(filename) + ".csv"
    evfile = op.basename(filename) + ".ev"
    if stutter:
        fw = open(evfile, "w")
        print >> fw, lv.evline
        fw.close()
        return

    fw = open(csvfile, "w")
    print >> fw, lv.csvline
    fw.close()

    fw = open(evfile, "w")
    print >> fw, lv.evline
    fw.close()

    # Save to s3
    if store:
        push_to_s3(store, csvfile)
        push_to_s3(store, evfile)
dataset/ETHPy150Open tanghaibao/jcvi/variation/str.py/write_csv_ev/original