Open And Close Serial Port Python