def unpack_files(key_list):
 for key in key_list:
  underscore = key.find('_')
  if (underscore <= 0):
   filename = (key if (underscore < 0) else key[1:])
  else:
   filename = '{basename}.{ext}'.format(basename=key[(underscore + 1):], ext=key[:underscore])
  clear_metadata_to_file(key, filename)

def unpack_files ( key_list ) : for key in key_list : underscore = key . find ( '_' ) if ( underscore <= 0 ) : filename = ( key if ( underscore < 0 ) else key [ 1 : ] ) else : filename = '{basename}.{ext}' . format ( basename = key [ ( underscore + 1 ) : ] , ext = key [ : underscore ] ) clear_metadata_to_file ( key , filename )
args unpack and clear the specified keys into their corresponding files .