The TCP scan concept and its implementation using a Python script