"""
A simple module that helps unify the code between a python2 and python3 library.
"""
import sys

def sorted(lst):
    newlst = list(lst)
    newlst.sort()
    return newlst

def reversed(lst):
    newlst = list(lst)
    return iter(newlst[::-1])

@@ -94,16 +94,63 @@
 rt sys%0A%0A
+try:%0A    sorted = sorted%0Aexcept NameError:%0A    
 def sort
@@ -150,32 +150,36 @@
 ef sorted(lst):%0A
+    
     newlst = lis
@@ -185,24 +185,28 @@
 st(lst)%0A    
+ 
+   
 newlst.sort(
@@ -207,16 +207,20 @@
 .sort()%0A
+    
     retu
@@ -230,16 +230,67 @@
 newlst%0A%0A
+try:%0A    reversed = reversed%0Aexcept NameError:%0A    
 def reve
@@ -300,24 +300,28 @@
 d(lst):%0A    
+ 
+   
 newlst = lis
@@ -323,24 +323,28 @@
 = list(lst)%0A
+    
     return i

Use builtin sorted, reversed if available.