title: Insert mode in curses.textpad in python
body: <p>While doing this in python:</p>
  
  <pre><code>tp = curses.textpad.Textbox(stdscr, insert_mode=True)
  text = tp.edit()
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>RuntimeError: maximum recursion depth exceeded while calling a Python object
  </code></pre>
  
  <p>Could you please tell me how to enable insert mode in curses.textpad? Thanks in advance.</p>