Read and Write Image Metadata in Python