python 3 compatability, removing python 2.6