Backport PR #6410: Fix relative import in appnope

Closes gh-6409

Ping @minrk - this fix should go into appnope as well.
Backport PR #6374: fix _abort_queues typo