Namespace bug in scraping.py

Found two little namespace problems in scraping.py and also wanted to create a pull request ;)