Removed file_extension(text) method

The same functionality is gained from os.path.splitext(path)