def write_libraries(dir, libraries):
 files = [open(os.path.join(dir, k), 'w') for (k, _) in libraries]
 for (f, (_, v)) in zip(files, libraries):
  v.write_markdown_to_file(f)
 for (f, (_, v)) in zip(files, libraries):
  v.write_other_members(f)
  f.close()

def write_libraries ( dir , libraries ) : files = [ open ( os . path . join ( dir , k ) , 'w' ) for ( k , _ ) in libraries ] for ( f , ( _ , v ) ) in zip ( files , libraries ) : v . write_markdown_to_file ( f ) for ( f , ( _ , v ) ) in zip ( files , libraries ) : v . write_other_members ( f ) f . close ( )
write a list of libraries to disk .