prefs: cleanup imports (no functional change)

(integrated from master branch change 31e2d80 by Todd Whiteman <toddw@activestate.com>)