Not my greatest python work, but for a quick thing that I never had intended to release; it did its job.