I use the netifaces module.
netifaces
import netifaces print netifaces.interfaces()
but this shows the result below:
[\
It's a lot easier in PowerShell:
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Select-Object Description, SettingID, MACAddress | Format-Table -AutoSize