結果 : get first n elements from dictionary python