Python Web Scraping Flowchart: Check whether a page contains a title or not