Displaying text in 3d Viewport (Mesh) using python script

hi,

Normally you can add text in the 3dviewport using ADD>TEXT .
However, how do we do the same using Python scripting.

Any help is welcome.
Thanks.