Asserts

Proper asserts for compat, wsgi, datastructures, debug