def newDerSequence(*der_objs):
 der = DerSequence()
 for obj in der_objs:
  if isinstance(obj, DerObject):
   der += obj.encode()
  else:
   der += obj
 return der

def newDerSequence ( * der_objs ) : der = DerSequence ( ) for obj in der_objs : if isinstance ( obj , DerObject ) : der += obj . encode ( ) else : der += obj return der
create a dersequence object .