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
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.
Use cast_bytes_py2 for getpass() prompt
Remove pycolor script
Adjust tab completion widget if too close to bottom of page.
Removing inversion of the completion list.
Fixing minor comment.
Merge pull request #4347 from takluyver/drop-pycolor

Remove pycolor script

We install a script to syntax highlight Python code in the terminal. This is quite obsolete, though, since the pygmentize command from Pygments offers the same functionality in a much more flexible way (more languages, more styles, other output formats).

This removes the wrapper script, but all the functionality is still there if you use python -m IPython.utils.PyColorize.
Open pdf after compiling (configurable)
Merge What's New entries from pull requests
Add script to update whatsnew file from PR snippets
Adress comments

 * move file extension addition outside of function
 * move log statement before function call
 * change default to False
 * add postprocessor to nbconvertapp
Merge pull request #4281 from ellisonbg/complete_above

Adjust tab completion widget if too close to bottom of page.
Merge pull request #4325 from damianavila/cleaning

Some changes to improve readability.