

class Security:
    def __init__(self, name='', par=0., val=0.):
        self.name = name
        self.par = par
        self.val = val

    def __repr__(self):
        if self.name:
            s = ' "%s"' % self.name
        else:
            s = ''
        return 'Security' + s + ': Par = %.3g, Val = %.3g' % (self.par, self.val)

add Security class