setAngularVelocity does not work
I found the solution. It is a bug in Blender and it does not accept (0,0,0) as angular velocity. It should be a small number instead of 0 for example (0.00001, 0.00001, 0.00001)