I believe the package wombat has a disallow joins node too.
But, if yo unwanted to do it with python, I would say to just have an input for walls and you collect them outside the node.
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
def tolist(obj1):
if hasattr(obj1,"__iter__"): return obj1
else: return [obj1]
doc = DocumentManager.Instance.CurrentDBDocument
#Preparing input from dynamo to revit
walls = tolist(UnwrapElement(IN[0]))
#Do some action in a Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
for e in walls:
WallUtils.DisallowWallJoinAtEnd(e, 0)
WallUtils.DisallowWallJoinAtEnd(e, 1)
TransactionManager.Instance.TransactionTaskDone()
OUT = walls
In Use: