[xbob.db.mnist] Backward syntax compatibility with Python 2.6