I don't know how/where to best submit patches to Pycairo, so I'll do it here and perhaps someone can direct me. The attached patch will add basic support back into Python3/pycairo for using ImageSurface.create_for_data() and ImageSurface.get_data(). It may not be 100% perfect, but the examples work and it's a step in the right direction.