migrate to newer and external tool dependencies
code cleanups, remove tempdirs, more PEP8 complient and indentation fixes