python: Fix version check.