nuke: write render node skipped with crop
# Description
After we had included Crop node in Render write node group The PreCollect Write Node is now taking Crop instead of Write node and adding it into context as write node. This is causing two known problems:
1. using it in label of instance
2. blocking rendering on farm as missing colorspace knob on Crop node. 
diff --git a/openpype/hosts/nuke/api/lib.py b/openpype/hosts/nuke/api/lib.py
index d7f3fdc6ba..ee03e04360 100644
--- a/openpype/hosts/nuke/api/lib.py
+++ b/openpype/hosts/nuke/api/lib.py
@@ -391,13 +391,14 @@ def create_write_node(name, data, input=None, prenodes=None,
         if prenodes:
             for node in prenodes:
                 # get attributes
-                name = node["name"]
+                pre_node_name = node["name"]
                 klass = node["class"]
                 knobs = node["knobs"]
                 dependent = node["dependent"]
 
                 # create node
-                now_node = nuke.createNode(klass, "name {}".format(name))
+                now_node = nuke.createNode(
+                    klass, "name {}".format(pre_node_name))
                 now_node.hideControlPanel()
 
                 # add data to knob
@@ -476,27 +477,27 @@ def create_write_node(name, data, input=None, prenodes=None,
 
     linked_knob_names.append("Render")
 
-    for name in linked_knob_names:
-        if "_grp-start_" in name:
+    for _k_name in linked_knob_names:
+        if "_grp-start_" in _k_name:
             knob = nuke.Tab_Knob(
                 "rnd_attr", "Rendering attributes", nuke.TABBEGINCLOSEDGROUP)
             GN.addKnob(knob)
-        elif "_grp-end_" in name:
+        elif "_grp-end_" in _k_name:
             knob = nuke.Tab_Knob(
                 "rnd_attr_end", "Rendering attributes", nuke.TABENDGROUP)
             GN.addKnob(knob)
         else:
-            if "___" in name:
+            if "___" in _k_name:
                 # add devider
                 GN.addKnob(nuke.Text_Knob(""))
             else:
-                # add linked knob by name
+                # add linked knob by _k_name
                 link = nuke.Link_Knob("")
-                link.makeLink(write_node.name(), name)
-                link.setName(name)
+                link.makeLink(write_node.name(), _k_name)
+                link.setName(_k_name)
 
                 # make render
-                if "Render" in name:
+                if "Render" in _k_name:
                     link.setLabel("Render Local")
                 link.setFlag(0x1000)
                 GN.addKnob(link)
['openpype/hosts/nuke/api/lib.py']