Animation with Python

Hy , i am new to blender python script . I 've learn Python script with IDLE and i try to understand how to program with Python in Blender .
I want to make a simple animation : an animated sphere and the animation to be controled with Python .
I know how to do this with MaxScript , but how is it in Blender ?
I need some help , please .