This function is supposed to clean up wrong chars from the string. But in recent python rules have changed (see string.translate note at http://docs.python.org/2/library/stdtypes.html). As a result, python throws exceptions saying something about wrong number of arguments and missing dictionary (don't remember exact text). I'am not a python expert so after few attempts I've decided to hack off this check entirely..