Mechanics of bubble motion and deformation in non-newtonian media