I'm trying to get certain strings in a .py file translated, using the i18n machinery.  Translating .pt files is not a problem, but whenever I try to translate using _('Something') in Python code on the filesystem, it always gives English text (which is the default) instead of the Norwegian text that should be there.  So I can see output from python code in English, while other Page Templates bits are correctly translated.
Is there a how-to or something similar for this?
be aware that _() does not translate the text at call, but returns a Message object which will be translated when rendered in a template.
That means:

do not concat Message objects. "text %s" % _('translation') will not work, as well as "text" + _('translation')
if you do not send the text to the browser through a template, it may not be translated. for example if you generate a email you need to translate the Message object manually
Translating content in filesystem for a Plone product