Fix order of operations
Update API according to newest pytoolbox.juju