- Get whole file content if nothing is selected.
- Make the code a bit more pythonic