Api Calls Using Python In Arcgis