python sort dictionary based on list