RF Replace deprecated sha.sha with hashlib.sha1