def _init_proxies(filename):
    """Reads in proxies from a simple file."""

    proxies = []

    with open(filename, "r") as file:
        proxies = file.read().split("\n")

    print(f"loaded {len(proxies)} simple proxies")
    counter = 0

    def get_new():
        nonlocal counter

        if counter >= len(proxies):
            return None

        return proxies[counter]

    return get_new