Python bits and pieces