Py3k: trying to stay 2.6 compatible