Application of python in Robotics: Sample codes