docs: def serial_number():
      """Get the serial number. Requires root access"""
      sdata = {}
      if os.getuid() == 0:
          try:
              sdata['Serial'] = open('/sys/class/dmi/id/product_serial') \
                  .read().strip()
          except:
              for line in os.popen('/usr/sbin/dmidecode -s system-serial-number'):
                  sdata['Serial'] = line.strip()
      return sdata