controls.py : Implemented ability to save files from editor