ompv4: added get_targets and get_targets_ids functions.

added two function into ompv4.py file