create a port scanner in python using chatgpt