Handy python classes, functions and scripts