Replace exec/eval with proper __import__.
Replace exec/eval with proper __import__.

Unfortunately for some very weird reason, this code can't be called as
a function, so I inlined a verbatim copy of importstring.import_item.

ipython/ipython,ipython/ipython