def _write_static_group_mapping(user_group_mapping, path):
 f = file(path, 'w')
 try:
  for (user, groups) in user_group_mapping.iteritems():
   f.write(('%s = %s\n' % (user, ','.join(groups))))
 finally:
  f.close()

def _write_static_group_mapping ( user_group_mapping , path ) : f = file ( path , 'w' ) try : for ( user , groups ) in user_group_mapping . iteritems ( ) : f . write ( ( '%s = %s\n' % ( user , ',' . join ( groups ) ) ) ) finally : f . close ( )
create a java-style .