sundry python codes I've written