Is there a way to find out with a script (in Python or JavaScript) which services a web-map is using and then find out which mxds were used to create these services? Which libraries or modules? I am so lost! I can do it by simply clicking and checking settings and properties, but need to do it for few maps and looking for an automated way.