def saveSession(self):
if self.cookies_file:<EOL><INDENT>self.r.cookies.save(ignore_discard=True)<EOL>with open(self.token_file, '<STR_LIT:w>') as f:<EOL><INDENT>f.write('<STR_LIT>' % (self.token_type, self.access_token))<EOL><DEDENT><DEDENT>
Save cookies/session.