Need api or function usage for python script on mission planner

We are newcomers to the quadcopter. We tried to write a python script to control the quadcopter simulated in mission planner.We used the example (http://ardupilot.org/planner/docs/using-python-scripts-in-mission-planner.html) to let the quadcopter do a roll in the air, but the quadcopter failed to arm and just stayed on the ground and didn’t fly. If it is ok, please provide us with api or more detailed function usage(especially for sendRC),so that we can have a better understanding of the codes, thanks!

Either takeoff in GUIDED mode or raise RC3 input after arming to enable takeoff.

MP comes with multiple examples. have a look in the MP install directory, then Scripts.