Hydrogen migration in photodissociation of the pyridine molecules