[python/app*] fix bad variable references