Python script for generating network packets while benchmarking