code: def _read_attr(attr_name):
      
      regex = attr_name + r"\s+=\s+'(.+)'"
      if sys.version_info.major == 2:
          with open('pefile.py', 'r') as f:
              match = re.search(regex, f.read())
      else:
          with open('pefile.py', 'r', encoding='utf-8') as f:
              match = re.search(regex, f.read())
      # Second item in the group is the value of attribute.
      return match.group(1)
docs: Parse attribute from file 'pefile.py' and avoid importing
      this module directly.
  
      __version__, __author__, __contact__,