Yeah, I'd love to have a decorator at the top of a file - @env to provide access to env variables or @secrets for some kind of secrets access, nothing else gets this.
Python is tough though, a very dynamic language so probably kind of hard to lock it down.