import arcpy
mxd = arcpy.mapping.MapDocument("current")
for lyr in arcpy.mapping.ListLayers(mxd):
if arcpy.Describe(lyr).dataType=='FeatureLayer':
print lyr.name
lyr.definitionQuery = "DIS='GM'"
import arcpy
mxd = arcpy.mapping.MapDocument("current")
for lyr in arcpy.mapping.ListLayers(mxd):
if arcpy.Describe(lyr).dataType=='FeatureLayer':
print lyr.name
lyr.definitionQuery = "DIS='GM'"