Through the ArcGIS Portal UI, when I edit the metadata for a portal item, the item's properties are updated when I save the metadata record:



However, when I update the item's metadata from the Python API, the item's properties are not updated. I've used the following 2 methods to update the item's metadata:
item.metadata = esri_metadata_file_name
item.update (metadata=esri_metadata_file_name)
Is there a way to, using the Python API, to update the item's properties when the metadata is updated?