gitignore .pyc and fix vistory.py to not fail when no node children