Minor code cleanups and ported some p4 interfacing code over to the p4 python mode.
treebd6a8d0cbea1348bb7d88b5dac85d154d2fd8485
drwxr-xr-x - contrib