core: debug works with python3