I am working on extracting media information from photos and videos. So far I have used mediainfo=dbx.files_get_metadata(file_id=fileid, include_media_info=True).media_info to get MediaInfo which includes PhotoMetadata with location and time_taken values. However, I can not find a way to get the location and time_taken values out of PhotoMetadata. I have used photometadata=MediaInfo.PhotoMetadata, location=mediainfo.PhotoMetadata.location and time_taken=mediainfo.PhotoMetadata.time_taken but got "no attribute PhotoMetadata", "no attribute location" and "no attribute time_taken" errors at different times. When I printed out MediaInfo it looks like (u'metadata', PhotoMetadata( dimension=******, location=None, time_taken=None)) but I can not . out the two values. Can someone show me what is the correct way to write the codes so I can get the value of location and time_taken? Thanks.