API for retrieving all exif tags

I noticed the documentation seems to encourage using dir for this. However, dir will also include methods on the Image class that aren't proper exif entries. Is there any API for retrieving a list of all tags on an image? Or better yet, a dictionary of tag -> value?