c-api python keeps none as an object and doesn't convert to NULL as I assumed