fix for Python 2.6 compat (#199)