removed suppport for python 2.6 and cleaned up related code