Port fw-parser to Python 3

Signed-off-by: Michael Buesch <m@bues.ch>