def NewCollection(seq, cls=Collection):
 return pythoncom.WrapObject(policy.DefaultPolicy(cls(seq)), pythoncom.IID_IDispatch, pythoncom.IID_IDispatch)

def NewCollection ( seq , cls = Collection ) : return pythoncom . WrapObject ( policy . DefaultPolicy ( cls ( seq ) ) , pythoncom . IID_IDispatch , pythoncom . IID_IDispatch )
creates a new com collection object this function creates a new com server that implements the common collection protocols .