Hi,
please use the logging API when writing code for sugar or sugar
activities rather than print (for debug messages, info messages,
exceptions...)
It's very simple:
import logging
logging.info('mymessage')
logging.debug('mydebugmessage')
...
This will ensure the messages are correctly displayed on the console
rather than on standard output.
Marco