Fix exception handling in python demos

the python demos write to sys.stderr if the serial connection fails, but sys is not imported
also, the error messages print out "port" instead of "s.port"