merged fetch.py from gh-pages