py: Fix function type: () -> (void).