Don't use gimp_message -- it can pop up an extra dialog.
Rename main methods to python_fu rather than just python.
We're not using collections, so don't import it