@Crok Ok, now I got you. Unfortunately I won’t have enough time to come up with a solution to that. So you need to try it yourself. To get back to the initial request, a quick search on the web revealed many projects/libs/… that do wake on lan in python:
https://pypi.org/project/wakeonlan/
https://github.com/bentasker/Wake-On-Lan-Python
https://gist.github.com/rschuetzler/8854764
So it’s just a matter of getting into coding and get it done. This has nothing much to do with what we can do for you as a FOG team.