def __getitem__(self,tup):
        """
        m.__getitem__(tup) -- Overload m[a,b] to submotif.  Less pythonish than [:], but more reliable
        """
        if len(tup) != 2:
            print "Motif[i,j] requires two arguments, not ",tup
        else:
            beg, end = tup[0], tup[1]
            return(submotif(self,beg,end))
def __getitem__ ( self , tup ) : if len ( tup ) != 2 : print "Motif[i,j] requires two arguments, not " , tup else : beg , end = tup [ 0 ] , tup [ 1 ] return ( submotif ( self , beg , end ) )
m.__getitem__(tup) -- Overload m[a,b] to submotif.  Less pythonish than [:], but more reliable