code: def readattr(path, name):
      
      try:
          f = open(USB_SYS_PREFIX + path + "/" + name)
          return f.readline().rstrip("\n")
      except IOError:
          return None
docs: Read attribute from sysfs and return as string