changed the line 'label = node.Name' to 'label = node.Name.strip('\'')'