title: AT command sent within the SMS text from python
body: <p>I need help with a piece of code I'm using to send weather forecast via SMS with a Huawei 3G dongle.</p>
  
  <p>It worked, but here's what I receive : </p>
  
  <pre><code>AT+CMGF=1
  AT+CMGS="+12345678"
  It's partly cloudy and 20C now in Wahren.
  </code></pre>
  
  <p>Why I am receiving those <code>AT</code> strings?</p>
  
  <pre><code>import pywapi
  import string
  import serial
  
  
  weather_com_result = pywapi.get_weather_from_weather_com('AGXX0006')
  sms_text = "It's " + string.lower(weather_com_result['current_conditions']['text']) + " and " + weather_com_result['current_conditions']['temperature'] + "C now in Wahren.\n\n"
  
  dongle = serial.Serial(port="COM6",baudrate=460800,timeout=0,rtscts=0,xonxoff=0)
  
  
  def sendatcmd():
      number = "+12345678"
      dongle.write('AT+CMGF=1\r')
      dongle.write('AT+CMGS="' +number+'"\r')
      dongle.write(str(sms_text)+"\r")
      dongle.write(chr(26))
      dongle.close()
      print "sent"
  
  sendatcmd()
  </code></pre>