How to create a Python script to monitor and analyze network traffic?