pyhiiextractor: a tool to detect and extract physical properties of H ii regions from integral field spectroscopic data