Minor change to the way pyface is imported so that we dont depend on traitsui.

Importing from pyface.api required all kinds of nonsense things which
ultimately made us depend on traitsui. This commit should change that.