Use dot notation for dicts when possible.
RRemove TODO, region is working.
Move nested code into self.close_region().
Use func instead of function and remove unnecessary bangs.
Move commas to the eol for special effects.