Separate get_regions from main.py
Another normalizing function