Pythons approach to variable declarations makes this doubly bad.
Tbh, I've been successful enough in avoiding using python that I don't know the specifics of that.