Isomerization of azobenzene and the enhancement of dynamic heterogeneities in molecular glass formers