Rewrote the configuration file parser generator.

Converted from Perl to Python for a better
and cleaner object oriented design.