If you are new to Python programming and would like to learn this language from a network engineers perspective to help automate configurations. I would recommend the following websites which will teach you the essential programming skills required by a network engineer.
https://pyneng.readthedocs.io/en/latest/
and a course by David Bombal on Udemy which is Python for Network Engineers.
https://www.udemy.com/course/python-network-programming-for-network-engineers-python-3/
I have a repository on Github which has a few scripts to help get you started.
https://github.com/kaisarmirza/Networking
I will hopefully share more on this topic in the near future.
A sample python script can be found here VyOS match criteria