def __init__(self, dev):
    self.dev = dev
    self.attrcmd = [x.format(dev=dev) for x in self.smartcmdfmt]
def __init__(self, dev):
    self.dev = dev
    self.attrcmd = [x.format(dev=dev) for x in self.smartcmdfmt]