Merge pull request #1798 from alex/py26-warn

Emit a warning on Python 2.6