Yes, this always confuses me too.
You need to pass into sort
a list of pairs, and you're passing a list of length 2 (i.e. a pair).
This should work:
itr= collection.find({'type':'homework'}).sort([ ['score', pymongo.ASCENDING] ])
The idea is that you can pass more than one pair in your list (for secondary order, etc.).