Move settings initialization to its own file
Minor fix for python 2.6 support