Delete empty sections after parsing; join undocumented sections (python only)