Python script to generate Asterisk configuration files