more explicit handling of output argument and a few fixes for python2.6
Changes to travis build routines.