Fix for python version 2.6