Fastimport parser and generator in Python