pyInterface: improve convertTreeToEvt

Use static constants in eventMetadata instead of hardcoding the branch names.