Fix broken checker on Python 2.7