Clear python errors when they occur