Bits and pieces of python I've written