Really new to programming in Python and I am trying to build a flask web app for a raspberry pi that would DNC g-code from a text file over the serial port to an older HASS cnc