Display has no attribute page_links issue resolved. Extra indent before def page_links & def print_page