import bisectscores = [(100, 'perl'), (200, 'tcl'), (400, 'lua'), (500, 'python')]bisect.insort(scores, (300, 'ruby'))print scores