Fix deprecation warning from os.popen3.
Fix deprecation warning from os.popen3.

Patch provided by Pim Schellart <p.schellart-AT-gmail.com>, slightly
modified to fix missing supbrocess references.

Fixes https://bugs.launchpad.net/ipython/+bug/488061

ipython/ipython,ipython/ipython