[handlers/fs.py] minor changes
An attempt to reorganize code alittle