merged rmtui.py into rmtgui.py