Simple parser as an experiment to learn python testing