'Function to get the source code of the tutorials page'

def get_pages(self):

    file_loc = 'download/events.html'
    file = open(file_loc, 'r+')
    code_str = ''
    for k in file.readlines():
        code_str += k
    self.events_page = bs(code_str, 'html.parser')
    file_loc = 'download/internals.html'
    file = open(file_loc, 'r+')
    code_str = ''
    for k in file.readlines():
        code_str += k
    self.internals_page = bs(code_str, 'html.parser')
    file_loc = 'download/exceptions.html'
    file = open(file_loc, 'r+')
    code_str = ''
    for k in file.readlines():
        code_str += k
    self.exceptions_page = bs(code_str, 'html.parser')
    file_loc = 'download/type_basics.html'
    file = open(file_loc, 'r+')
    code_str = ''
    for k in file.readlines():
        code_str += k
    self.types_page = bs(code_str, 'html.parser')
