updating docs and fixing comparision for python 2.6