Python’s built-in hashlib is capable of calculating SHA1. There’s no need to depend on a third party library which may or may not be available.