revised bed_to_wig.py