optimize __debug__ flag
disable 'assert' when Python runtime runs with -O/-OO
add test for __debug__ and asserts with Python's -O/-OO options