Further fixes for Python 2.6

Further changes based on pyql travis config file

  https://github.com/enthought/pyql/blob/master/.travis.yml