def validate_archive_keys(info):
 keys = ['snapshot file', 'framework', 'name']
 for key in keys:
  if (key not in info):
   return (False, key)
 return (True, 0)

def validate_archive_keys ( info ) : keys = [ 'snapshot file' , 'framework' , 'name' ] for key in keys : if ( key not in info ) : return ( False , key ) return ( True , 0 )
validate keys stored in the info .