add main block
PEP8
simplify makedir
refactor print statement
with statement