Solved!. To be able to use IFCUtils from a python node in Dynamo I changed your code like this:
# Import DocumentManager and TransactionManager clr.AddReference("RevitServices") import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager uidoc = DocumentManager.Instance.CurrentUIApplication doc = DocumentManager.Instance.CurrentDBDocument app = uidoc.Application
Now it properly loads the references from the API and it works. This is probably trivial but beeing a rookie took me a bit to figure out.
Thanks for your help Kop!.