Collect all global settings in three hashes instead of bunch of unrelated global variables. Also use of os.path.join instead of str1 + "/" + str2.