Cleaning up qm/reaction.py