I wittnessed this very fuckery with my own eyes just two weeks ago:
It was an excel file created in pandas that threw an error on english commands but worked if the code included german ones.
I don't know how or why that happens, I just know I need to get away from it.