Initial rewrite in python, not complete
More WIP, add support for filtering stdout, simplify command definition