code: def login(self):
          
          data = {'user': self.options['username'], 'passwd':
                  self.options['password'], 'api_type': 'json'}
          response = self.client.post('http://www.reddit.com/api/login', data=data)
          self.client.modhash = response.json()['json']['data']['modhash']
docs: Logs into Reddit in order to display a personalised front page.