Editing mrt_functions.py

Re-organizing