Changed import sha to import hashlib due to deprecation warning