an Astropy affiliated package for pixel regions and threshold-based detection