Made checks work with python 2.6.