A simple serial connection handler written in Python