python: Fix type translation.