Some python updates from @machinalis repos

I added a few useful tools for python. If you want to merge the PR with --squash , feel free to do so. I broke the formatting a bit while trying to use github's builtin editor