python/gfx.c: fixed bug in stroke passing