This can also be done as:

    except (requests.exceptions.Timeout, requests.exceptions.SSLError):
        g.log.info('adzerk request timeout') 
        return None
    finally:
        timer.stop()

And remove the `timer.stop()` line below.