def _py_outerloops(self):
    code_before = ''
    for dim_idx in xrange(self.n_dims_before):
        code_before += (('\t' * dim_idx) + ('for outer_idx_%d in xrange(input_shape[%d]):\n' % (dim_idx, dim_idx)))
    return code_before
def _py_outerloops(self):
    code_before = 
    for dim_idx in xrange(self.n_dims_before):
        code_before += (('\t' * dim_idx) + ('for outer_idx_%d in xrange(input_shape[%d]):\n' % (dim_idx, dim_idx)))
    return code_before