Added tidylib in order to tidy up crappy HTML before processing with Beautiful Soup.