I wrote a basic python CGI script to parse cobbler data and generate some graphs. The script works fine but it takes a really long time to run due to the large number of hosts stored in cobbler's *.json files. Any suggestions for improving performance? I know I can convert the *.json data and import into a mysql database, but thought I'd check here first before rewriting the code.