class Optioncal_transition(object): def __init(self, **args): self.chemical = args.get('chemical') self.i = args.get('i') self.j = args.get('j', self.i)