call the method parser.parse with an argument tuple with 2 elements strings: 'else' and 'endfilter', substitute the result for nodelistelse.
nodelist_true = parser . parse ( ( 'else' , 'endifchanged' ) )