$ brew update && brew upgrade python
$ brew install python3
brew update
brew upgrade python
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python
import uuid
mac_address_int = uuid.getnode() # Get hardware address as 48-bit positive int
mac_address_hex = hex(mac_address_int) # Create hexadecimal version of mac address
print("MAC address:", mac_address_hex) # MAC address: 0x00005e0053af