If you run python with the -O option, `assert` statements are removed.  E.g.

    $ python -c "assert False, 'uh oh'"
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    AssertionError: uh oh

but

    $ python -O -c "assert False, 'uh oh'"
    $