Fix lint errors including use of `global`
Merge pull request #376 from spicyj/noglobal

Fix lint errors including use of `global`