Update connect.py

Fixing a bug on windows 7 32 bit : 

[IPythonQtConsoleApp] ERROR | Could not setup tunnels
Traceback (most recent call last):
  File "C:\Anaconda\lib\site-packages\IPython\consoleapp.py", line 304, in init_
ssh
    newports = tunnel_to_kernel(info, self.sshserver, self.sshkey)
  File "C:\Anaconda\lib\site-packages\IPython\kernel\connect.py", line 364, in t
unnel_to_kernel
    password = getpass("SSH Password for %s: "%sshserver)
  File "C:\Anaconda\lib\getpass.py", line 95, in win_getpass
    msvcrt.putch(c)
TypeError: must be char, not unicode
[IPythonQtConsoleApp] Exiting application: ipython-qtconsole
When calling getpass,
TypeError: must be char, not unicode
add LazyConfigValue

exposes container methods on container traits, to be lazily evaluated.

Specifically:

- append, extend, insert on lists
- update on dicts
- update, add on sets
AttributeError check on config no longer works

use new `'Class.trait' in config` check
update bundled profiles to use extend
AttributeError no longer raised on missing config
add LazyConfig.prepend
use netifaces for faster IPython.utils.localinterfaces
parse ifconfig / ip addr / ipconfig in localinterfaces

also typically faster and more reliable than gethostbyname,
but lower priority than netifaces.
remove strip_math_space

I don't think it solves any problems with supported pandoc versions,
and it does introduce new ones.

closes #4309
supersedes #4310
move edit_metadata to IPython.dialog
Some changes to improve readibility.
Added closing slash to meta.
Added title to full_html and slides.
Make irunner compatible with upcoming pexpect 3.0 interface
Use cast_bytes_py2 for getpass() prompt
Adjust tab completion widget if too close to bottom of page.
Removing inversion of the completion list.
Fixing minor comment.
Open pdf after compiling (configurable)
Merge What's New entries from pull requests