Python 3 lambda tuple unpacking fix