Added types for more of the Python C API.