I think we only need to have one global variable - the version number. It's OK to redo the comparison each time, so we don't need to cache `version_ok`. Given that, I think using the `global` kw is clearer than having an extra dict of globals.