Circumvent "port is already open"

Running the test_pt.py-script, there was an error, that the serialport was already open.

This seems to be caused by the fact, that the function in transport_serial.py is called multiple times - even when the port is already open.

This somewhat fixes the problem.