fix broken 2.x python test on static methods