Create port_tester.py

Adding port_tester. It is working and returns the ports as an array. May be too verbose, best to use it with python -i.