remove local(), add with statement and set_connect_env() contecst manager
add checking of python version
rewrite parsing of args; rewrite start of tasks on host; rewrite sys.stdout output into run(); rewrite popen processing into run()