A lot of routines in biostat.py contain this code fragment. if type(indata[0]) is ListType: if len(indata[0]) == 2: datalist = table2list(indata) elif type(indata) is ListType: datalist = indata[:] else: raise TypeError Could it be made into a function to reduce clutter? Kate