def _save_nodes(workflow, nodes):
 for node in nodes:
  if (node.node_type is 'kill'):
   continue
  try:
   Node.objects.get(workflow=workflow, node_type=node.node_type, name=node.name)
  except Node.DoesNotExist:
   node.save()

def _save_nodes ( workflow , nodes ) : for node in nodes : if ( node . node_type is 'kill' ) : continue try : Node . objects . get ( workflow = workflow , node_type = node . node_type , name = node . name ) except Node . DoesNotExist : node . save ( )
save nodes .