Python 2.6 compat.

see #585