added get_region_ind, modified region.py