Wrote a first version of sig_gen.py, a python replacement for the sig_gen.sh shell script