Refactored to use python-jujuclient