There is something similar to this but I am still confused about it.
Here is the part of the code:
class General(Component):
def __init__(self, localvars,globalvars,coupledvars,outputvars,equation):
self.loc = localvars
for i in range(0,len(localvars)):
localvars[i] = Float(1.0, iotype='in')
print localvars