def pronoun_instance_dist(novel, words):
    """
        Takes in a novel and list of gender pronouns, returns a list of distances between each
        instance of a pronoun in that novel
        >>> from gender_novels import novel
        >>> summary = "James was his convicted of adultery. "
        >>> summary += "which made him very sad, and then his Jane was also sad, and himself everybody was "
        >>> summary += "sad and then he died and it was very sad. His Sadness."
        >>> novel_metadata = {'author': 'Hawthorne, Nathaniel', 'title': 'Scarlet Letter',
        ...                   'corpus_name': 'sample_novels', 'date': '1966',
        ...                   'filename': None, 'text': summary}
        >>> scarlett = novel.Novel(novel_metadata)
        >>> pronoun_instance_dist(scarlett, ["his", "him", "he", "himself"])
        [6, 5, 6, 6, 7]

        :param:novel
        :return: list of distances between instances of pronouns
    """
    text = novel.get_tokenized_text()
    output = []
    count = 0
    start = False

    for e in text:
        e = e.lower()
        if not start:
            if e in words:
                start = True
        else:
            count += 1
            if e in words:
                output.append(count)
                count = 0
    return output