execute scripts
added tests, refactor
pep8 pyflakes