follow PEP 8
change to console script
do refactoring for showing file type and access