Formatting of test_serial.py