def norm_page_cnt(page, max_number=None):
    """
    Normalize a integer (page).

    * Ensure that it is greater than Zero, and is not None.
        - If less than 1, or None, set it to 1

    * if max_number is None, then do not check for max_number
        * if greater than max_number, reset it to be max_number
    """
    if page == None or page < 1:
        page = 1

    if max_number != None:
        if page > max_number:
            page = max_number
    return page
Normalize a integer (page).

    * Ensure that it is greater than Zero, and is not None.
        - If less than 1, or None, set it to 1

    * if max_number is None, then do not check for max_number
        * if greater than max_number, reset it to be max_number