def remove_contained_in_list(l):
i = <NUM_LIT:0><EOL>l.sort()<EOL>while i < len(l) - <NUM_LIT:1>:<EOL><INDENT>if l[i+<NUM_LIT:1>].contains(l[i]):<EOL><INDENT>l.pop(i)<EOL><DEDENT>elif l[i].contains(l[i+<NUM_LIT:1>]):<EOL><INDENT>l.pop(i+<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>i += <NUM_LIT:1><EOL><DEDENT><DEDENT>
Sorts list in place, then removes any intervals that are completely
       contained inside another interval