Add py3k compatibility for core widget and overlayplugin.

Dictionary keys are treated differently in py3k, causing the Canny
plugin to not work on py3k.
Use the more idiomatic list().
Merge pull request #895 from blink1073/fix-canny-py3k

Improve py3k compatibility for Viewer core widget and OverlayPlugin.