re-add license notice which I accidentially removed
different cleanups: whitespace, comments
get rid of subprocess.call() - tends to leave zombies