replace python 2.6 dep with more generic form