How to monitor the complete network through Python?

I want to use Python to monitor the complete network, if the route or link goes up/down will get the notification.
I found a few packages like lanscan, but I’m not sure that will work fine or not.
Basically, I want to use python same as NMS (Network management system). Please suggest to me some good frameworks or packages.