updated code to python site scrapper snippet