Getting the location of rigid body object at current keyframe
Use:

import bpy

obj = bpy.data.objects["Cube"]
print(obj.matrix_world.translation)


This gives you the location from object's matrix which changes each frame for rigid bodies