code: def user_blocks(user_text, session):
      
      logger.debug("Getting blocks for {0}".format(user_text))
      doc = session.get(action='query', list='blocks', bkusers=user_text,
                        bkprop=['id', 'timestamp'])
      return [mwtypes.Timestamp(b['timestamp']) for b in doc['query']['blocks']]
docs: Returns a list of blocks for a single user