oxidoreductase activity, acting on a heme group of donors, oxygen as acceptor