def attrs(**kwds):
 def decorate(f):
  for k in kwds:
   setattr(f, k, kwds[k])
  return f
 return decorate

def attrs ( ** kwds ) : def decorate ( f ) : for k in kwds : setattr ( f , k , kwds [ k ] ) return f return decorate
helper function that returns a dict of xml attributes .