added generate digests from python