thanks for the feedback, glad its been helpful!
FYI - kt0 has created several similar scripts that convert text files into python code (rather then just updating python code like mine does)
troop.txt - http://forums.taleworlds.com/index.php/topic,69313.0.html
parties.txt - http://forums.taleworlds.com/index.php/topic,61873.0.html
item_kinds1.txt - http://forums.taleworlds.com/index.php/topic,59985.0.html