PyType_GetFlags() return type is unsigned long, not long.
Attach a file by drag & drop or click to upload