use contextlib for locks, support ubuntu guest serial ports, predictive ...

...field and key pair delimiters