trying to allow again use in a ipython console

I like to use the patchbot in a ipython console. I tried to make it simpler and documented.