結果 : get first n elements of dictionary python