package-py.c, packagedelta-py.c: share get_{str,num,chksum}()