arcgis .py refactor