self.value3 = 'THIRD VALUE'

def __str__(self):
    return '{value1:{0}},{value2:{1}},{value3:{2}}'.format(*[20, 8, 10], **
        vars(self))
print(Dummy())
Python fixed width string format using vars or __dict__