imgdata = img.tostring()
img.fromstring(imgdata) or img = Image.fromstring('RGB', (640, 480), imgdata)
rgb = img.getpixel( (10, 31) )
img.putpixel( (10, 31), (255, 255, 0) )