[python] Fix rather badly broken pygmi.
[python] Fix rather badly broken pygmi.

Sirikid/wmii,rvedam/wmii,Sirikid/wmii,rvedam/wmii,Sirikid/wmii,jerluc/wmii,sigmavirus24/wmii,sigmavirus24/wmii,jerluc/wmii,sigmavirus24/wmii,sigmavirus24/wmii,sigmavirus24/wmii,rvedam/wmii,Sirikid/wmii,darkfeline/wmii,wingyplus/wmii,wingyplus/wmii,darkfeline/wmii,wingyplus/wmii,darkfeline/wmii,jerluc/wmii,jerluc/wmii,wingyplus/wmii,Sirikid/wmii,darkfeline/wmii,darkfeline/wmii,jerluc/wmii,rvedam/wmii,wingyplus/wmii,rvedam/wmii