how to control armature bone using python?

im new to python and programming but i have read a lot about python and started learn it
i want to creat script that will allow me “play” with armature bones(each bone with a different key)
i found that i can use euler_rotation and joint_rotation but ive tryied use this commands like ???.dRot and it dosent work .
if someone have an idea how to make that work(im need to control the bone in real time not to play animation) please help!

*sorry for bad english

Here’s a tiny, hakish example which uses a scene_update handler to demonstrate realtime changes to bones:

import bpy

arma = None

for ob in bpy.context.scene.objects:
    if ob.type == 'ARMATURE':
        arma = ob
        arma.rotation_mode = 'XYZ'
def handler_animate_bone(scene):
    global arma
    if arma:
        arma.pose.bones[0].rotation_euler[0] += 0.01

all you need is an armature in current scene with at least one bone and you need to be in POSE or OBJECT MODE to see it!

i need that for game engine (if someone knows how to add a sensor to single bone in armature skeleton please help!)