Setting The Track and Up Buttons Via Python Code

Hi All,

Select the default cube and press F7.

You will see the Anim settings TAB. Along the top there are buttons.
TackX Y Z -X -Y -Z and UpX Y Z.

I have looked here:

But I can not find a way to push those buttons via python code.

Can this be done?

Does anyone know how to set the Tack and or Up animation settings for an object?