tried to bring all the file handling methods in one py file