use librepo.download_packages()