Fix relative import in appnope

Closes gh-6409
Merge pull request #6410 from takluyver/master

Fix relative import in appnope