Convert test_image_putpixel.py. More changes needed for test_cffi.py