doc: update_docs.sh now edits PYTHONPATH