how to rotate a bone with vertxes

Hi!

Does anyone know how to rotate a bone in python with the vertex-es to?
I managed to rotate just the bone the vertex stays in its place.

Cluoiset