added create_regions.py from bbest gist