[Python-checkins] Include subsections in TOC for PDF version of docs. (GH-9629)