Usage of % for string formatting is discouraged, since it's going to be deprecated in future versions. It must be changed with method format.

In DOM.Contacts.py:

    view_all_contact_xpath = '//*[@data-order="{}"]'

And in this file:

    DOM.Contacts.view_all_contact_xpath.format(p_contact_json_obj['name'].replace(" ",""))