import sys
import serial
import threading
from blueplayer import blueplayer


def main():
    args = sys.argv[1:]
    # first argument should be a serial terminal to open
    if not len(args):
        port = "/dev/ttyAMA0"
    else:
        port = args[0]

    player = None

    with serial.Serial(port) as serial_port:
        try:
            player = blueplayer.BluePlayer(serial_port)

            player_thread = threading.Thread(target=player.start)
            serial_thread = threading.Thread(target=player.run)

            player_thread.start()
            serial_thread.start()

            player_thread.join()
            serial_thread.join()
        except KeyboardInterrupt as ex:
            print("\nBluePlayer cancelled by user")
        except Exception as ex:
            print("How embarrassing. The following error occurred {}".format(ex))
        finally:
            if player:
                player.end()
                player.stop()

if __name__ == "__main__":
    main()

@@ -214,11 +214,9 @@
 /tty
-AMA
+S
 0%22%0A 
@@ -294,16 +294,23 @@
 ial(port
+, 19200
 ) as ser

Update serial port and baud rate