fixed logging
pep8
automatic filetype
split import function