code: def calculate_hash(options):
          
          options = sorted(list(options))
          sha_hash = sha1()
          # equivalent to loop over the options and call sha_hash.update()
          sha_hash.update(''.join(options).encode('utf-8'))
          return sha_hash.hexdigest()
docs: returns an option_collection_hash given a list of options