update build_gallery to work with new plotting api
consistent import formatting