def SetSegBounds(ea, startea, endea, flags):
    return idaapi.set_segm_start(ea, startea, flags) & \
           idaapi.set_segm_end(ea, endea, flags)
The part that's the least straightforward about views in this module is
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetSegBounds--crossover with--dataset/ETHPy150Open grantmcconnaughey/django-avatar/avatar/views.py/_get_next