fixed some bugs in _compiler.c for Python3 (have to review this)