Syntax issue fixed and now functions as an ArcGIS tool.