how to check end of objects physics via python

hello, id like to know if there is a way to check if an object is no more affected by physics i gave it.
for example i have a sphere (rigid body) and i set a linear velocity or maybe angular velocity and so on, how to check via python when the sphere is no more in movement?
thx

Would this help?

http://www.tutorialsforblender3d.com/GameModule/ClassKX_GameObject_14.html

If the speed is zero in all x y and z, the object has stopped.

uh! so easy!?.. thx i think its what i needed