code: def get_preferences(self):
          
          pref_list = self.request('GetPrefs')['pref']
  
          out = {}
          for pref in pref_list:
              out[pref['name']] = utils.auto_type(pref['_content'])
  
          return out
docs: Gets all the preferences of the current user
  
          :returns: a dict presenting the preferences by name, values are
                   typed to str/bool/int/float regarding their content.