Update ui_api_refactor.py

Some additional functions for interface_regions.c