Make tasks.py python 2.6 compatible