python odds and ends