TCP Connect Scan port scanner in Python 3