Julia Gillard took office this time at the head of a minority government after she lost her majority in polls August 21 and cobbled together a shaky coalition last week , with two independent lawmakers .