def split_list(l, split):
 m = sp.match(split)
 if (not m):
  raise ValueError('split must be a string of the form a/b where a and b are ints')
 (i, t) = map(int, m.groups())
 return l[(((i - 1) * len(l)) // t):((i * len(l)) // t)]

def split_list ( l , split ) : m = sp . match ( split ) if ( not m ) : raise ValueError ( 'split must be a string of the form a/b where a and b are ints' ) ( i , t ) = map ( int , m . groups ( ) ) return l [ ( ( ( i - 1 ) * len ( l ) ) // t ) : ( ( i * len ( l ) ) // t ) ]
splits a list into part a of b split should be a string of the form a/b .