Update trans_mode.py

new function to compute gyration radius according to Song's paper (to be improved)