@mrkpkimEMSRM ,
Look here, not exactly your case, but worth reading:
You have to dismiss Revit dialog in Python.