Python bits and bobs