Fixing coding guidelines in lib/xml_generator.py