Easy way to clear the Serial buffer

I think you'd have to throw in something like this to get at the private inner field:

from org.apache.commons.lang3.reflect import FieldUtils
with system.serial.port("COM1") as port:
    jSerialPort = FieldUtils.readField(port, "serialPort", True)
    jSerialPort.flushIOBuffers()

Disclaimer: Still untested