def build_entrypoints(prefix, entrypoints):
 result = []
 for (entrypoint_id, rel_class_name) in entrypoints:
  if (':' in rel_class_name):
   sep = '.'
  else:
   sep = ':'
  result.append(('%s = %s%s%s' % (entrypoint_id, prefix, sep, rel_class_name)))
 return result

def build_entrypoints ( prefix , entrypoints ) : result = [ ] for ( entrypoint_id , rel_class_name ) in entrypoints : if ( ':' in rel_class_name ) : sep = '.' else : sep = ':' result . append ( ( '%s = %s%s%s' % ( entrypoint_id , prefix , sep , rel_class_name ) ) ) return result
build and return a list of entrypoints from a module prefix and list .