migrator.py: Support hierarchical comments