Shouldn't we create an exception? Asserts will be stripped on python optimization.