It looks like you are trying to tell a method to sort()use your lambda function as a keyfor sorting. This is done with the keyword argument key:
queue.sort(queue, key = [your lambda function])
Rewritten line:
queue.sort(queue, key = lambda x: util.manhattanDistance(curr,x))
: -; , , ,