fix the bug of crashing mcf when tracing is enabled, update the setup script to python3