Python open file write create

Python open file write create image.