use irclib native connection.set_rate_limit\(\) in place of bespoke code.