def _read_attr(attr_name):
    """
    Parse attribute from file 'pefile.py' and avoid importing
    this module directly.

    __version__, __author__, __contact__,
    """
    regex = attr_name + r"\s+=\s+['\"](.+)['\"]"
    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)

    Parse attribute from file 'pefile.py' and avoid importing
    this module directly.

    __version__, __author__, __contact__,
    
setup.py