Daren Thomas started a GitBook to describe how RevitPythonShell and Revit interact, and perhaps you may find something useful that could assist with creating custom Python nodes for Dynamo…
Download at:
Scripting Autodesk Revit with RevitPythonShell – GitBook