old_contents: import requests
  class Bit:
      def __init__(self, auth_token, device_id):
          self.token = auth_token
          self.id = device_id
          self.version = '0.1.0'
          self.headers = {"Authorization": "Bearer " + self.token, "Accept": "application/vnd.littlebits.v2+json"}
      
      def output(self, pct, dur):
          r = requests.post("https://api-http.littlebitscloud.cc/devices/" + self.id + "/output", data={"percent": pct, "duration_ms": dur}, headers=self.headers)
          return r.text
          
new_contents: import requests
  print """
  mist - a python wrapper for the cloudBit API.
  
  If you use this, please let me know on github!
  http://github.com/technoboy10/mist
  """
  class Bit:
      def __init__(self, auth_token, device_id):
          self.token = auth_token
          self.id = device_id
          self.version = '0.1.0'
          self.headers = {"Authorization": "Bearer " + self.token, "Accept": "application/vnd.littlebits.v2+json"}
      
      def output(self, pct, dur):
          r = requests.post("https://api-http.littlebitscloud.cc/devices/" + self.id + "/output", data={"percent": pct, "duration_ms": dur}, headers=self.headers)
          return r.text
          
subject: Print stuff when module is imported.