Thank you for contacting us.
This is an interesting issue. Having a Python script running at startup should not be an issue if everything was working fine before.
The error you observe in the serial monitor has been reported before in the community. There are a few suggestions you can try to avoid seeing this error, which can be seen here: https://communities.intel.com/thread/111338
Go through the thread’s suggestions and let us know your results.