@Eric89GXL boom. ;-)

```Python
    158     if 'win' in sys.platform:
--> 159         for line in os.popen("ipconfig /all"):
    160             if line.lstrip().startswith('Physical Address'):

ipdb> sys.platform
'darwin'
```