add Python 2.6 to testing; fix some Py26 issues