I would do os.environ.get("LANG", "some default") to be extra paranoid.

Why do you split() it on the '.' character? That will return an array, did you want to get the first component of that?