def get_network_boundaries(network):
    """
    Determines the first and last IPs given an ipaddress network object
    Returns: First IP, Last IP
    https://stackoverflow.com/a/9717242
    https://stackoverflow.com/a/1942848
    """
    count = 0
    for ip in network:
        count += 1
    return network[0], network[count - 1]
