'This function parses PEP 0 and retrieves all the relevant URLs containing
the various PEPs. It adds all the links with a PEP identifier to a set
called links. A set is used to filter out any duplicates and read
efficiency.
A conditional is added to the end of this function to check that this
was successful. If it wasn\'t, the program exits. Consider checking
internet connection if this fails.'

def get_pep_urls(self):

    soup = BeautifulSoup(self.open_pep_index(), 'html.parser', from_encoding='UTF-8')
    for link in soup.findAll('a', href=True, text=re.compile('^[0-9]*$')):
        self.links.add(link)
