Misc fixes to sig_gen.py

@rvraghav93