Active object by python

Hi, someone can explain me how to make an object active by python.

i’ve two object selected in casual order, but i want to make a specified one active.

how i can do this by python?? = ob

the previously selected object will remain in the selected_objects list.

work! thank you very much!