Python: Fix compiler warning