def main():
    """Main function"""

    img = Image.open("test.jpeg")

    # Print the image's EXIF metadata dictionary indexed by EXIF numeric tags
    exif_data_num_dict = img._getexif()
    print exif_data_num_dict

    # Print the image's EXIF metadata dictionary indexed by EXIF tag name strings
    exif_data_str_dict = {PIL.ExifTags.TAGS[k]: v for k, v in exif_data_num_dict.items() if k in PIL.ExifTags.TAGS}
    print exif_data_str_dict