 <p>Could be this bug...</p> <p><a href="http://bugs.python.org/issue11587" rel="nofollow">http://bugs.python.org/issue11587</a></p> <p>Which means it's a python version issue. One fix seems to be to use <code>METH_KEYWORDS | METH_VARARGS</code>.</p>