Test for the object with the biggest x-vector using python
You can do this without constructing an auxillary dictionary, in one line:

biggest = max(bpy.context.scene.objects, key=lambda ob: ob.location.x)


The key parameter makes max() return the item from bpy.context.scene.objects with the largest location.x property.