network monitoring python examples