I have this simple bash script that I’m thinking about incorporating into my python project as I couldn’t figure out a graceful way to do this in python3 compared to this single bash oneliner. Is there a better way to do this in python3 or a library that would assist with storing all legitimate unique hostnames in a list or