apt.upgrade()
apt.install()
also return the result
was able to bootstrap a complete machine with this, although there's lots missing yet...