Fix error displaying from python.