first element of bits and first element of remaining_bits. call the method parser.parse with an argument tuple, with an element string 'endwith', substitute the result for nodelist.
nodelist = parser . parse ( ( 'endwith' , ) )