Create generate.py

Python script for generating packets