try to replace sha with hashlib as sha module is deprecated , to fix #20