vinay, thank you for questions.
Based on the screenshot, I see that you have enabled "Windows Diagnostics extension" on this VM because of which you are getting the metrics reported under "Guest (classic)" namespace. For more details on these Namespaces, see this link.
Note that these metrics are stored in Azure Storage account in specific tables in Table storage. For details, see Data destinations. Therefore, when using Python SDK, you would have to query the storage account's Table storage to get these values. In order to utilize the Azure Monitor Metrics API/Python SDK for Azure Monitor Metrics to view these guest level metrics as collected using the diagnostic extension, the metrics being collected needs to be sent to "Azure Monitor" using Sink option. This will add a new namespace "Virtual Machine Guest" (to which the same data as collected by diagnostic extension also gets forwarded to). This namespace can be queried using the relevant SDK/APIs to get the values.
Hope this helps. In case the suggestion above does not help you, please add additional details along with the code/documentation being used to query the metrics using SDK, and we will review it further.