Getting layer information with the ArcGIS REST API and Python