the client does this for you as well https://github.com/mozilla/solitude/blob/master/lib/bango/client.py#L99