code: def addch(window, y, x, ch, attr):
          
  
          if sys.version_info[:3] == (3, 4, 0):
              y, x = x, y
  
          window.addch(y, x, ch, attr)
docs: Curses addch() method that fixes a major bug in python 3.4.
  
          See http://bugs.python.org/issue21088