How do I change the bone layer with a script?
bone.layers is an array of 32 boolean values tells you whether the bone is present on each of the 32 layers.

So you could add the line:  bone.layer[8] = True

for bone in bpy.context.active_object.pose.bones[:]:
    if bone.name in ListOfBoneNames:
        bone.layer[8] = True  #put that bone into bone layer 8
        #could also remove the bone from other layers if you wanted!