py: Fix use of uninitialized variable introduced in df94b71