python packages: Fix errors.