Create getPorts.py