refactor python scrapers