I am making a python program to scan the given host and ports from arguments. If the socket connects to the port successfully it returns that the port is open, otherwise it