Replaced PyCFunction with PyCFunctionWithKeywords for xfer and xfer2