list property

How would i print the name of the property with the list of objects that have that property?

import bge
scene = bge.logic.getCurrentScene()
objects_with_property = [ob for ob in scene.objects if 'gat_prop' in ob]
print(objects_with_property)

scene = bge.logic.getCurrentScene()
objects_with_property = [ob for ob in scene.objects if 'bot_prop' in ob]
print(objects_with_property)

That is okay i found out how to do it.Here it is.

import bge
scene = bge.logic.getCurrentScene()
objects_with_property = [ob for ob in scene.objects if 'gat_prop' in ob]
print("gat property cubes")
print(objects_with_property)

scene = bge.logic.getCurrentScene()
objects_with_property = [ob for ob in scene.objects if 'bot_prop' in ob]
print("bot property cubes")
print(objects_with_property)