code: def accounts(self):
          
          from ofxclient.account import Account
          client = self.client()
          query = client.account_list_query()
          resp = client.post(query)
          resp_handle = StringIO(resp)
  
          if IS_PYTHON_2:
              parsed = OfxParser.parse(resp_handle)
          else:
              parsed = OfxParser.parse(BytesIO(resp_handle.read().encode()))
  
          return [Account.from_ofxparse(a, institution=self)
                  for a in parsed.accounts]
docs: Ask the bank for the known :py:class:`ofxclient.Account` list.
  
          :rtype: list of :py:class:`ofxclient.Account` objects