>>> import Tkinter>>> w = Tkinter.Tk()>>> w.wm_state('iconic')
Should work and minimize the window to the taskbar.
To minimize it to the taskbar as a button:
w.iconify()