this looks like a problem where a for-loop would work. If you have a list of your MXDs (including path), you can loop over them.
listofmaps = open(r"C:\Users\maplist.txt","r")
for map in listofmaps:
map1 = arcpy.mapping.MapDocument(map)
map1.dataDrivenPages.exportToPDF(r"folder where I want pdf stored", "RANGE", "1-163","PDF_MULTIPLE_FILES_PAGE_NAME")
del map1
Each map in the text file will be output to the folder. Hope this helps!