fixed python 2.4 code, update config example