Assorted python programs