Fix deprecated python checker