(edit, books are not for beginners and black hat has better reviews)
There are two books, not sure if they are too advanced and I think both are writen for python 2.7 but they are more or less on the subject, one is called 'Gray Hat Python' and another 'Black Hat Python'
https://www.amazon.com/Gray-Hat-Python-Programming-Engineers/dp/1593271921 https://www.amazon.com/Black-Hat-Python-Programming-Pentesters/dp/1593275900/
You could read reviews of these two books to see if this would be a good starting point. Othervise I would search youtube for keywords like 'python network security' and similar...
Grey Hat Python is an interesting book I have on the subject. It is a little complex so I put it off for now but it might be just what you need.