python3 support. toc parser.