Modified ship.py, so that no additional thread is created for sending messages.