Update terrain2wiki.py to work with github transition better. Also fixing docstrings.