Help!!! I want to set general movement dampining using a python script.

i want something like

obj.setdamping()

thats not the right thing though what should it be?