def fromHex(hex, default=None, safe=True):
    'Get existing node from Node.hex'
    node = Singleton._instances.get(hex, default)
    if (safe and node and node.exists):
        return node
    else:
        return node
Get existing node from Node.hex
def fromHex(hex, default=None, safe=True):
    
    node = Singleton._instances.get(hex, default)
    if (safe and node and node.exists):
        return node
    else:
        return node