Tuning the Photochemical Reactivity of Electrocyclic Reactions: A Non-adiabatic Molecular Dynamics Study