You probably want to use mokoui2 (python-mokoui) for this: http://talk.maemo.org/showthread.php?t=25640