Here is a simple trick/workaround: Instead of a comment, put REM_x=
in front to turn the comment into an option (which your code will ignore):
[Section]
Value1=Foo
REM_1=Very important comment
REM_2=Another very important comment
REM_Value2=Bar
Value2=Baz