Locale bug in my snap package or the Python program code itself?

there is

but this comes from a time where we still had remote parts so re-working that a bit to become a local part is probably needed.