Better formatting for serial_test.py