Unable to set the LocalLB.Pool Members priorities and ratio value.

I have Created a LocalLB Pool with 3 members, I want to set the priorities and ratios , but I get an error.

can any one let me the reason for this error. code file attached.

File “main.py”, line 53, in setters_v11

priorities= [[6L,1L,2L]])

File “/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/client.py”, line 542, in __call__

File “/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/client.py”, line 602, in invoke

File “/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/client.py”, line 649, in send

File “/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/client.py”, line 702, in failed

File “/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/bindings/binding.py”, line 265, in get_fault

suds.WebFault: Server raised fault: ‘Error de-serializing array. Too many values in array. Array specified 1, found 3.’

def setters_v11(p_name):

LBMethod = b2.LocalLB.Pool.typefactory.create(‘LocalLB.LBMethod’)

lbmethod_array = b2.LocalLB.Pool.typefactory.create(‘LocalLB.LBMethodSequence’)

lbmethod_array.item = [LBMethod.LB_METHOD_LEAST_CONNECTION_MEMBER]

b2.LocalLB.Pool.set_lb_method([p_name], lbmethod_array)

Prepare Common__AddressPort [] [] members

mem_add_port_list = b2.LocalLB.Pool.get_member_v2([p_name])[0]

add_port_seq = b2.LocalLB.Pool.typefactory.create(‘Common.AddressPortSequence’)

add_port_seq.item = mem_add_port_list

add_port_seq_seq = b2.LocalLB.Pool.typefactory.create(‘Common.AddressPortSequenceSequence’)

add_port_seq_seq.item = [add_port_seq]

Prepare in String [] pool_names,

name_str_seq = b2.LocalLB.Pool.typefactory.create(‘Common.StringSequence’)

name_str_seq.item = [p_name]

Prepare in long [] [] priorities LongSequence

prio_long = [6L,1L,2L]

Prepare in long [] [] ratios

ratio_long = [4L,2L,3L]

Set Prio.

b2.LocalLB.Pool.set_member_priority( pool_names= name_str_seq,

members= add_port_seq_seq,

priorities= [[6L,1L,2L]])

Set Ratio

b2.LocalLB.Pool.set_member_ratio( pool_names= name_str_seq,

members= add_port_seq_seq,

ratios= [ratio_long])