A simple python3 script which sends a Magic Packet to a listening network device.
The original code for python 2 can be found here: https://apple.stackexchange.com/questions/95246/wake-other-computers-from-mac-osx/287814#287814
Just clone the repo and make the script executable or call it via python3.
python3 wakeonlan.py <BROADCAST-ADDRESS> <MAC-ID>