'Set the maximum download and maximum upload rate limits with the value in the config.
This is the extra step necessary to apply a new maximum download/upload rate setting.
:return:'

def update_max_rates_from_config(self):

    for lt_session in self.ltsessions.itervalues():
        ltsession_settings = lt_session.get_settings()
        ltsession_settings['download_rate_limit'] = self.tribler_session.config.get_libtorrent_max_download_rate()
        ltsession_settings['upload_rate_limit'] = self.tribler_session.config.get_libtorrent_max_upload_rate()
        lt_session.set_settings(ltsession_settings)
