Use the old line engine with hardcoded colors as fallback

In case of python-related errors.