Changed pending_input='' to input_=''.