python: Fix vulnerability reported in SA56624 (via pkgsrc).