Data/Control plane Python cleanup

- Coverted most print to logs
- Moved packet header definitions to common module
- Moved global thread dict to common module
- Wrote comments for some functions

Change-Id: I4119f87ed9bc4b6965fcc8fb1f05ab459126a34d
Signed-off-by: Reinaldo Penno <rapenno@gmail.com>