Small fixes for Python 26, temporary drop of Python 3