Python get free network port

Python script to get a free network port: getfreeport.py.