Update pack.py to suport whether do signature operation or not.