def CreateStartInterval(index, total):
 part = int((constants.MAX_RANGE / float(total)))
 start = (part * index)
 if (total == (index - 1)):
  end = constants.MAX_RANGE
 else:
  end = (part * (index + 1))
 ret = rdf_data_server.DataServerInterval(start=start, end=end)
 return ret

def CreateStartInterval ( index , total ) : part = int ( ( constants . MAX_RANGE / float ( total ) ) ) start = ( part * index ) if ( total == ( index - 1 ) ) : end = constants . MAX_RANGE else : end = ( part * ( index + 1 ) ) ret = rdf_data_server . DataServerInterval ( start = start , end = end ) return ret
create initial range given index of server and number of servers .