IronPython error - 'NoneType' object has no attribute 'ActiveUIDocument'