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
Keywords should shadow magic functions
Disable autocall for prefilter test
Fix scrolling output not working
by adding a conditional for the append output
height reset.
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.
Scroll to top after slide change event.
Fixed overflow not responding.
Remove unused loop variable.
Avoid using a temporary variable by returning the value directly.
adjust default value of level in sync_imports

and value check for <= 0 instead of just -1.

Python 3 no longer allows negative values (relative or absolute),
and we should have always allowed 0 to work anyway.

closes #4296
fix mathjax download url to new GitHub format
Merge pull request #4336 from minrk/kernel_cmd_format

use simple replacement rather than string formatting in format_kernel_cmd

closes #4334
Merge pull request #4340 from ahmadia/patch-1

fix mathjax download url to new GitHub format
s/'auto'/''
Merge pull request #4328 from abhinav-upadhyay/unused-variable

Remove unused loop variable.
test view.sync_imports
Merge pull request #4338 from minrk/sync_imports

adjust default value of level in sync_imports
Merge pull request #4237 from takluyver/keywords-shadow

Keywords should shadow magic functions
Make parameters for kernel start method more general