Generate python script to replay HTTP traffic