removing estring method for python 2.6