add def sanitize

Move sanitize from sanitize.py to scrape.py
Underscore-hide globals.