There a great python library to programm under Motif and other called wxPython , I think it is more powerfull then Tk