Cleaned Python scraping code