This is the version of mtest that pretty much works and uses pyserial for serial communication. I am about to try to replace pyserial with pyvisa such that all communication is handled by pyvisa. If in the future one, wants to use pyserial instead, they can revert to this commit.