Return id of a page based on passed page name and space.
    Parameters:
    - name: name of a Confluence page.
    - space: space the Confluence page is in.

def get_page_id(name, space):
    """Return id of a page based on passed page name and space.
    Parameters:
    - name: name of a Confluence page.
    - space: space the Confluence page is in.
    """
    data = _json.loads(_api.rest("?title=" + name.replace(" ", "%20") + "&"
                       "spaceKey=" + space + "&expand=history"))
    try:
        return data["results"][0]["id"]
    except:
        return ("Page not found!")