Abstract _get_contents into a separate method
Fix linting errors
Add grandchildren contents() test
Merge pull request #47 from sloppyfocus/more_speedups

More speedups