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

As the sha module is depracated ,try to import sha1 from hashlib to serve this issue, to close #20 .