Update ui_api_refactor.py

Some additional functions for interface_regions.c
Merge pull request #2 from Psy-Fi/patch-1

Update ui_api_refactor.py