import re


def proj_name_from_init(i):
    """Get the project name from __init__.py path i

    Args:
        i (str): path of a __init__.py file
    Returns:
        name from Project('projfoo_name') statement or None.
    """
    with open(i) as i_search:
        for line in i_search:
            matches = re.match("Project\('([^']+)'\)", line)  # noqa W605
            if matches:
                return matches[1]
    return None