Assorted python scripts