Revit Slows down after large Dynamo script

If you are using python within your script, have you looked at the revit api’s “dispose” calls to remove elements from memory after you have done what you require?