Use hashlib for get_checksum() instead of relying on external tools