python/tests: fix typo to use correct var