Can we calculate that beforehand? Also `os.environ.get` could make this much more readable.